package edu.sctu.zhengsenwen.month201506.day20150617;

import java.applet.Applet;
import java.awt.*;

/**
 * 应用九点半命令测试Applet的步骤
 * Created by user15 on 2015/6/17.
 */
public class JBDApplet extends Applet {


    //Applet的初始化
    public void init(){

        repaint();
    }

    //Applet的绘画方法

    public  void paint(Graphics graphics){

        graphics.setFont(new java.awt.Font("Diaiog",1,16));

        int numberone =5;
        int numbertwo =6;

        int result = numberone + numbertwo;

        graphics.drawString("numberone + numbertwo = "+result,140,65);
    }
}
